import { SHOW_KEFU } from '@/env';
import { mapState } from 'pinia';
import { useGlobal } from '@/common/stores';
export default {
	data() {
		return {
			SHOW_KEFU: SHOW_KEFU
		};
	},
	computed: {
		...mapState(useGlobal, ['global']),
		$unitEn() {
			return this.global.unitEn;
		},
		$countryCode() {
			return this.global.countryCode;
		},
		$isEnglishVersion() {
			return this.global.countryCode === 'en_US';
		}
	},
	// #ifdef H5
	onReady() {
		let title = document.title;
		if (title[0] === '%') {
			document.title = this.$t(title.replace(/\%/g, ''));
			uni.setNavigationBarTitle({
				title: document.title
			});
		}
	}
	// #endif
}
